package com.ohs.fo.action;

import com.ohs.bll.util.ConfigurationManager;

public class ActionUtil {
	public static String genKeyword(String keyword) {
		String[] keywords = keyword.split(" ");
		StringBuffer result = new StringBuffer();
		for (int i=0; i< keywords.length; i++ ) {
			result.append(keywords[i] + ",");
		}
		return result.substring(0, result.length() - 1);
	}
	
	public static String loadTopProductUrl() {
		return ConfigurationManager.getAsString(ConfigurationManager.CONFIG, "top.product.url");
	}
	
	public static String loadAddProductUrl() {
		return ConfigurationManager.getAsString(ConfigurationManager.CONFIG, "add.product.url");
	}
}
